<style scoped>
.page-nav {
  height: 34px;
  margin-left: 18px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-nav .nav {
  padding: 2px 12px;
  background-color: #f1f3f4;
  border-radius: 2px;
  color: #454545;
  cursor: pointer;
}
</style>
<!--  -->
<template>
  <div class="page-nav">
    <div class="nav dfac" @click="showNavList = !showNavList">
      <span>{{title}} <i :class="{'el-icon-arrow-down':showNavList,'el-icon-arrow-left':!showNavList}"></i></span>
    </div>
    <NavList :closeNavList="closeNavList" :changeTitle="changeTitle" v-show="showNavList" />
  </div>
</template>

<script>
import NavList from '@/components/header/backendHeader/backenddesignheader/nav/NavList.vue'
export default {
  data () {
    return {
      showNavList: false,
      title: '    '
    }
  },
  methods: {
    closeNavList () {
      this.showNavList = false
    },
    changeTitle (title) {
      this.title = title
    }
  },
  components: {
    NavList
  }
}

</script>
